const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      "/api": {
        target: "http://127.0.0.1:5000", // 将请求代理到后端的地址
        changeOrigin: true,
        pathRewrite: {
          "^/api": "/api", // 重写请求路径，将 /api 开头的请求路径改为 /api
        },
      },
    },
  },
});
